package com.ruoyi.business.vo;

import lombok.Data;

/**
 * 访问数据展示 VO
 * 用于封装界面所需的访问统计数据
 *
 * @author qiancheng
 * @date 2025-06-16
 */
@Data
public class VisitDataVO {

    /**
     * 本日访问次数
     */
    private Integer todayVisitTimes;

    /**
     * 本日访问人数
     */
    private Integer todayVisitCount;

    /**
     * 较昨日变化率（比如下降或增长，可根据正负值及业务约定展示文字，如“较昨日下降 8.3%” ）
     */
    private Double todayCompareYesterdayRate;

    /**
     * 本月访问次数
     */
    private Integer monthVisitTimes;

    /**
     * 本月访问人数
     */
    private Integer monthVisitCount;

    /**
     * 较上月变化率（比如增长或下降，如“较上月增长 8.3%” ）
     */
    private Double monthCompareLastMonthRate;

    public VisitDataVO(Integer todayVisitTimes,
                       Integer todayVisitCount,
                       double dayRate,
                       Integer monthVisitTimes,
                       Integer monthVisitCount,
                       double monthRate ) {
        this.todayVisitTimes = todayVisitTimes;
        this.todayVisitCount = todayVisitCount;
        this.todayCompareYesterdayRate = dayRate;
        this.monthVisitTimes = monthVisitTimes;
        this.monthVisitCount = monthVisitCount;
        this.monthCompareLastMonthRate = monthRate;
    }

}